package com.epam.kulibaba.components.mainPage;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import com.epam.kulibaba.components.Component;

public class ProductsContainer extends Component {
	public static final String CONTAINER = ".home-page-cloud";
	@FindBy(css = ProductsContainer.CONTAINER)
	private  WebElement container;
	
	public WebElement getContainer(){
		return container;
	}	

	public  ProductsContainer getProductsContainer(WebDriver driver) {
		ProductsContainer productsContainer = PageFactory.initElements(driver,
				ProductsContainer.class);		
		return productsContainer;
	}

}
